//引用初始化文件样式
// 引用初始化文件样式
import '@/styles/common.scss'
//引用懒加载指令插件并注册
import { lazyPlugin } from '@/directives/index.js'
import {componentsPlugin} from '@/components/index.js'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'

const app = createApp(App)
const pinia =createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(router)
app.use(lazyPlugin)
app.use(componentsPlugin)
app.mount('#app')
